﻿using Infragistics.Windows.DockManager.Events;
using System.Collections.Generic;
using VNet.VisiSuite.Controls;
using VNet.VisiSuite.VisiAdmin.Controls;
using VNet.VisiSuite.VisiAdmin.ViewModels;

namespace VNet.VisiSuite.VisiAdmin.Views
{
    /// <summary>
    /// Interaction logic for StatusView.xaml
    /// </summary>
    public partial class StatusView : VisiPage
    {
        public StatusView()
        {
            InitializeComponent();
        }

        private void PaneDragStarting(object sender, PaneDragStartingEventArgs e)
        {
            e.Cancel = true;
        }

        public override IList<VNetMenuItem> BottomMenuItems()
        {
            var viewModel = DataContext as StatusViewModel;
            if (viewModel == null) return null;

            return viewModel.BottomMenuItems;
        }
    }
}
